Fix tools dependency-check scripts for *BSD.
authorKeir Fraser <keir@xensource.com>
Tue, 25 Sep 2007 09:21:07 +0000 (10:21 +0100)
committerKeir Fraser <keir@xensource.com>
Tue, 25 Sep 2007 09:21:07 +0000 (10:21 +0100)
zlib and crypto libs are part of the base system in *BSD.
So no need to check for them on *BSD. This conveniently avoids
executing a non-portable usage of ldconfig.

Signed-off-by: Christoph Egger <Christoph.Egger@amd.com>
tools/check/check_crypto_lib
tools/check/check_zlib_lib

index 8002f1d10978689158c14ec177709ba1da9bfb0a..4717cca7f9815ecd3f626d1f1d9960dc07de5b46 100755 (executable)
@@ -3,6 +3,14 @@
 
 RC=0
 
+case $(uname -s) in
+FreeBSD|NetBSD|OpenBSD)
+       exit 0
+       ;;
+*)
+       ;;
+esac
+
 PATH=/sbin:$PATH
 set -e
 ldconfig -p 2>&1 | grep -q libcrypto.so || RC=1
index 4e7282f618cdb4c58f0d62abc11d96e33b6689cc..a4231d606afd7d171806139d2b210440e3ac5900 100755 (executable)
@@ -3,6 +3,14 @@
 
 RC=0
 
+case $(uname -s) in
+FreeBSD|NetBSD|OpenBSD)
+       exit 0
+       ;;
+*)
+       ;;
+esac
+
 PATH=/sbin:$PATH
 
 set -e